package com.hcb.tonguetiphealth.view;

import android.os.Bundle;

import com.hcb.tonguetiphealth.global.Global;
import com.hcb.tonguetiphealth.manager.Exit;
import com.hcb.tonguetiphealth.widget.bookOnline.BookOnlineWidget;
import com.hcb.tonguetiphealth.widget.resbook.RestaurantBookInfoWidget;
import com.hcb.tonguetiphealth.widget.resbook.RestaurantBookWidget;

public class OnlineBookActivity extends AbstractActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    String fromSearchPcgPic = this.getIntent().getStringExtra("fromSearchPcgPic");
	    String fromResBookBt = this.getIntent().getStringExtra("fromResBookBt");
	    String fromDisPic = this.getIntent().getStringExtra("fromDisPic");
	    if ("true".equals(fromSearchPcgPic)) {
	    	 //setContentView(new RestaurantBookInfoWidget(this));
		}else if("true".equals(fromDisPic)) {
			
		}else {
			setContentView(new BookOnlineWidget(this));
		}
	    Exit.add(this);
	}

	@Override
	public void onBackPressed() {
		//super.onBackPressed();
		finish();
	}
}